package pingpongdojo.model.demo;

import java.util.Calendar;

import pingpongdojo.model.Game;
import pingpongdojo.model.GameManager;

public class DemoGameManager extends GameManager {

	public DemoGameManager() {
		Calendar calendar = Calendar.getInstance();

		Game game1 = createGame("Customer manager", DemoUserManager.DEMO_USER1,
				DemoUserManager.DEMO_USER2);

		calendar.add(Calendar.DATE, -3);
		game1.setDateLastPlayed(calendar.getTime());

		Game game2 = createGame("Sales manager", DemoUserManager.DEMO_USER1,
				DemoUserManager.DEMO_USER3);

		calendar.add(Calendar.DATE, -7);
		game2.setDateLastPlayed(calendar.getTime());

		Game game3 = createGame("Product manager", DemoUserManager.DEMO_USER2,
				DemoUserManager.DEMO_USER3);

		calendar.add(Calendar.DATE, -12);
		game3.setDateLastPlayed(calendar.getTime());
	}
}
